var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
$("#btn_close").bind("click", function () {
    window.history.back();
});
$(function () {
    document.getElementById("rePassWord").style.display = "none";
    document.getElementById("theTestId").style.display = "none";
})
$('#inTest').click(function () {
    var passWord = $('#passWord').val();
    var rePassWord = $('#rePassWord').val();
    var theTestId = $('#theTestId').val();
    if (passWord != rePassWord) {
        alert("密码错误，请重新输入！");
    } else {
        $.ajax({
            url:  Feng.ctxPath +"/testing",
            type: "post",
            data: {
                "theTestId": theTestId
            },
            success: function (data) {
                alert('考试开始!');
                window.location.href =  Feng.ctxPath +"/testing";
            },
            error: function (data) {
                alert('内部故障!');
            }
        });
    }

})